package com.example.factory;

import com.example.car.Car;
import com.example.car.TOOFamilyCar;
import com.example.car.TOOSportsCar;

// TOO工厂类  
public class TOOFactory extends AbstractCarFactory {
    @Override  
    public Car createFamilyCar() {
        System.out.println("创建too家庭汽车...");
        return new TOOFamilyCar();
    }  
  
    @Override  
    public Car createSportsCar() {
        System.out.println("创建too运动汽车...");
        return new TOOSportsCar();

    }  
}
